#ifndef __LIGHTSCENENODE_H__
#define __LIGHTSCENENODE_H__

#include "../include/ILightSceneNode.h"

class CLightSceneNode : public ILightSceneNode
{
protected:
	vector3df32 SpotDirection;
	f32 SpotCutOff;
	IMaterial Mat;
	IRenderizableLight rl;
public:
	CLightSceneNode(IMaterial mat=IMaterial(),vector3df32 nspotd=vector3df32(0.0,0.0,0.0),f32 spotco=10.0,ISceneNodeBasicParamsDeclaration);
	virtual ~CLightSceneNode();

	virtual void SetSpotDirection(vector3df32 nv);
	virtual void SetSpotDirectionX(f32 nv);
	virtual void SetSpotDirectionY(f32 nv);
	virtual void SetSpotDirectionZ(f32 nv);

	virtual f32 GetSpotCutOff();
	virtual void SetSpotCutOff(f32 nv);

	virtual void Render(IDrawableFaceManager *dfm);

	virtual void UpdateNode()
	{
//		rl.UpdateTransformation(AbsoluteTransformation);
	}
	virtual void OnRender()
	{
	}
};

#endif
